package com.xxxx.portal.controller;


import com.xxxx.rpc.pojo.GoodsCategory;
import com.xxxx.rpc.service.GoodsCategoryService;
import com.xxxx.rpc.service.SearchService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("goodsCategory")
public class GoodsController {

    @Reference
    private GoodsCategoryService goodsCategoryService;


    @RequestMapping("/list")
    @ResponseBody
    public List<GoodsCategory> selectCategoryListAll() throws Exception {
        return goodsCategoryService.selectGoodsCategoryAll();
    }




}
